# -*- coding: utf-8 -*-

# 集合
if __name__ == '__main__':
    a = set(range(10))
    print a
    b = set(range(5,10))
    print b
    # 并交差异或
    print a | b
    print a & b
    print a - b
    print a ^ b
    # 判断是否为子集合，父集合
    print "-----子集------"
    print a.issubset(b)
    print b.issubset(a)
    print a.issubset(a)
    print "------父集--------"
    print a.issuperset(b)
    print b.issuperset(a)
    print a.issuperset(a)
